"use client";

import { ConfigProvider, theme } from "antd";
import { SessionProvider } from "next-auth/react";
import { NotificationProvider } from "~/components/common/Notification";
import { TRPCProvider } from "~/trpc/Provider";
import zhCN from "antd/locale/zh_CN";

export default function Providers({ children }: { children: React.ReactNode }) {
  return (
    <TRPCProvider>
      <SessionProvider>
        <ConfigProvider 
          locale={zhCN}
          theme={{
            algorithm: theme.defaultAlgorithm,
            token: {
              motion: false,
            },
          }}
        >
          <NotificationProvider>
            {children}
          </NotificationProvider>
        </ConfigProvider>
      </SessionProvider>
    </TRPCProvider>
  );
} 